<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>

  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="mineAttributeList" checkbox="false" pagination="true" fitColumns="false" title="矿井信息维护" actionUrl="mineAttributeController.do?datagrid" idField="id"  queryMode="group">
   <t:dgToolBar title="编辑" icon="icon-edit" url="mineAttributeController.do?goTUpdate" width="1000" height="500" funname="update"></t:dgToolBar>
  </t:datagrid>
 <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="mineAttributeController.do?doUpdate" >
					<input id="id" name="id" type="hidden" value="${mineAttributePage.id }">
		<table  cellpadding="0" cellspacing="1" class="formtable">
					<tr>
						<td align="center">
							<label class="Validform_label">
								煤矿代码:
							</label>
						</td>
						<td >
						     	 <input id="csMineCode" name="csMineCode" type="text" readonly="readonly" style="width: 160px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csMineCode}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">煤矿代码</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								煤矿名称:
							</label>
						</td>
						<td >
						     	 <input id="csMineName" name="csMineName" type="text" readonly="readonly" style="width: 250px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csMineName}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">煤矿名称</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								煤矿简称:
							</label>
						</td>
						<td >
						     	 <input id="csMineShortname" name="csMineShortname" type="text" readonly="readonly" style="width: 200px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csMineShortname}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">煤矿简称</label>
						</td>
					</tr>
					<tr>
						<td align="center">
							<label class="Validform_label">
								井口代码:
							</label>
						</td>
						<td >
						     	 <input id="csWellCode" name="csWellCode" type="text" readonly="readonly" style="width: 160px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csWellCode}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">井口代码</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								Y坐标:
							</label>
						</td>
						<td >
						     	 <input id="cmYCoor" name="cmYCoor" type="text" readonly="readonly" style="width: 250px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.cmYCoor}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">Y坐标</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								X坐标:
							</label>
						</td>
						<td >
						     	 <input id="cmXCoor" name="cmXCoor" type="text" readonly="readonly" style="width: 200px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.cmXCoor}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">X坐标</label>
						</td>
					</tr>
					<tr>
						<td align="center">
							<label class="Validform_label">
								Z坐标:
							</label>
						</td>
						<td >
						     	 <input id="cmZCoor" name="cmZCoor" type="text" readonly="readonly" style="width: 160px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.cmZCoor}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">Z坐标</label>
						</td>
						
						<td align="center">
							<label class="Validform_label">
								煤矿详细地址:
							</label>
						</td>
						<td >
						     	 <input id="csMineAddr" name="csMineAddr" type="text" readonly="readonly" style="width: 250px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csMineAddr}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">煤矿详细地址</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								井口名称:
							</label>
						</td>
						<td >
						     	 <input id="csWellName" name="csWellName" type="text" readonly="readonly" style="width: 200px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csWellName}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">井口名称</label>
						</td>
					</tr>
					<tr>
						
						<td align="center">
							<label class="Validform_label">
								所在行政区域规划:
							</label>
						</td>
						<td >
						     	 <input id="csBtareaCode" name="csBtareaCode" type="text" readonly="readonly" style="width: 160px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csBtareaCode}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">所在行政区域规划</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								煤矿联系电话:
							</label>
						</td>
						<td >
						     	 <input id="csBtareaPhone" name="csBtareaPhone" type="text" readonly="readonly" style="width: 250px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csBtareaPhone}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">煤矿联系电话</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								煤矿安全监管单位代码:
							</label>
						</td>
						<td >
						     	 <input id="csAdministerCode" name="csAdministerCode" type="text" readonly="readonly" style="width: 200px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csAdministerCode}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">煤矿安全监管单位代码</label>
						</td>
					</tr>
					<tr>
						<td align="center">
							<label class="Validform_label">
								煤矿安全监管单位名称:
							</label>
						</td>
						<td >
						     	 <input id="csAdministerName" name="csAdministerName" type="text" readonly="readonly" style="width: 160px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csAdministerName}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">煤矿安全监管单位名称</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								办矿主体隶属关系代码:
							</label>
						</td>
						<td >
						     	 <input id="csSubrelationCode" name="csSubrelationCode" type="text" readonly="readonly" style="width: 250px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csSubrelationCode}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">办矿主体隶属关系代码</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								采矿许可证号:
							</label>
						</td>
						<td  >
						     	 <input id="csMinelicenNum" name="csMinelicenNum" type="text" readonly="readonly"   style="width: 200px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csMinelicenNum}' >
							<span class="Validform_checktip"></span>
							<label class="Validform_label"  style="display: none;">采矿许可证号</label>
						</td>
					</tr>
					<tr>
						
						<td align="center">
							<label class="Validform_label">
								采矿许可证有效期:
							</label>
						</td>
						<td  >
									  <input id="csMinelicenEffec" name="csMinelicenEffec" type="text"   style="width: 160px"  readonly="readonly"  
									  ignore="ignore"
									    value='<fmt:formatDate value='${mineAttributePage.csMinelicenEffec}' type="date" pattern="yyyy-MM-dd"/>'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">采矿许可证有效期</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								安全生产许可证号:
							</label>
						</td>
						<td >
						     	 <input id="csSplicenNum" name="csSplicenNum" type="text" readonly="readonly" style="width: 250px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csSplicenNum}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">安全生产许可证号</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								安全生产许可证有效期:
							</label>
						</td>
						<td >
									  <input id="csSplicenEffec" name="csSplicenEffec" type="text" readonly="readonly" style="width: 200px"  "  
									  ignore="ignore"
									    value='<fmt:formatDate value='${mineAttributePage.csSplicenEffec}' type="date"  pattern="yyyy-MM-dd"/>'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">安全生产许可证有效期</label>
						</td>
					</tr>
					<tr>
						<td align="center">
							<label class="Validform_label">
								煤炭生产许可证号:
							</label>
						</td>
						<td >
						     	 <input id="csProlicenNum" name="csProlicenNum" type="text" readonly="readonly" style="width: 160px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csProlicenNum}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">煤炭生产许可证号</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								煤炭生产许可证有效期:
							</label>
						</td>
						<td >
									  <input id="csProlicenEffec" name="csProlicenEffec" type="text" readonly="readonly" style="width: 250px"  "  
									  ignore="ignore"
									    value='<fmt:formatDate value='${mineAttributePage.csProlicenEffec}' type="date"  pattern="yyyy-MM-dd"/>'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">煤炭生产许可证有效期</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								营业执照号:
							</label>
						</td>
						<td >
						     	 <input id="csBusilicenNum" name="csBusilicenNum" type="text" readonly="readonly" style="width: 200px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csBusilicenNum}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">营业执照号</label>
						</td>
					</tr>
					<tr>
						
						<td align="center">
							<label class="Validform_label">
								营业执照有效期:
							</label>
						</td>
						<td >
									  <input id="csBusilicenEffec" name="csBusilicenEffec" type="text" readonly="readonly" style="width: 160px"  "  
									  ignore="ignore"
									    value='<fmt:formatDate value='${mineAttributePage.csBusilicenEffec}' type="date" pattern="yyyy-MM-dd"/>'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">营业执照有效期</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								矿长姓名:
							</label>
						</td>
						<td >
						     	 <input id="csMineheadName" name="csMineheadName" type="text" readonly="readonly" style="width: 250px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csMineheadName}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">矿长姓名</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								矿长安全生产许可证号:
							</label>
						</td>
						<td >
						     	 <input id="csMheadlicenNum" name="csMheadlicenNum" type="text" readonly="readonly" style="width: 200px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csMheadlicenNum}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">矿长安全生产许可证号</label>
						</td>
					</tr>
					
					<tr>
						<td align="center">
							<label class="Validform_label">
								矿长安全生产许可资格证有效期:
							</label>
						</td>
						<td >
									  <input id="csMheadlicenEffec" name="csMheadlicenEffec" type="text" readonly="readonly" style="width: 160px"  "  
									  ignore="ignore"
									    value='<fmt:formatDate value='${mineAttributePage.csMheadlicenEffec}' type="date" pattern="yyyy-MM-dd"/>'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">矿长安全生产许可资格证有效期</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								矿长资格证号:
							</label>
						</td>
						<td >
						     	 <input id="csMheadqualiNum" name="csMheadqualiNum" type="text" readonly="readonly" style="width: 250px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csMheadqualiNum}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">矿长资格证号</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								经济类型代码:
							</label>
						</td>
						<td >
						     	 <input id="csEconomicType" name="csEconomicType" type="text" readonly="readonly" style="width: 200px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csEconomicType}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">经济类型代码</label>
						</td>
					</tr>
					<tr>
						
						<td align="center">
							<label class="Validform_label">
								年生产能力kt:
							</label>
						</td>
						<td >
						     	 <input id="csCapacityAnnual" name="csCapacityAnnual" type="text" readonly="readonly" style="width: 160px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csCapacityAnnual}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">年生产能力kt</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								实际生产能力kt:
							</label>
						</td>
						<td >
						     	 <input id="csCapacityReal" name="csCapacityReal" type="text" readonly="readonly" style="width: 250px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csCapacityReal}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">实际生产能力kt</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								职工总人数:
							</label>
						</td>
						<td >
						     	 <input id="csWorkersTotal" name="csWorkersTotal" type="text" readonly="readonly" style="width: 200px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csWorkersTotal}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">职工总人数</label>
						</td>
					</tr>
					<tr>
						<td align="center">
							<label class="Validform_label">
								井田面积km2:
							</label>
						</td>
						<td >
						     	 <input id="csMineField" name="csMineField" type="text" readonly="readonly" style="width: 160px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csMineField}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">井田面积km2</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								可采煤层:
							</label>
						</td>
						<td >
						     	 <input id="csCoalSeam" name="csCoalSeam" type="text" readonly="readonly" style="width: 250px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csCoalSeam}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">可采煤层</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								矿井瓦斯等级:
							</label>
						</td>
						<td >
									<t:dictSelect field="csGasLevel" type="list" readonly="readonly"
										typeGroupCode="" defaultVal="${mineAttributePage.csGasLevel}" hasLabel="false"  title="矿井瓦斯等级"  
										></t:dictSelect>     
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">矿井瓦斯等级</label>
						</td>
					</tr>
					<tr>
						
						
						<td align="center">
							<label class="Validform_label">
								煤矿生产状态:
							</label>
						</td>
						<td >
						     	 <input id="csMineState" name="csMineState" type="text" readonly="readonly" style="width: 160px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csMineState}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">煤矿生产状态</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								矿类型:
							</label>
						</td>
						<td >
									<t:dictSelect field="mineType" type="list" readonly="readonly"
										typeGroupCode="" defaultVal="${mineAttributePage.mineType}" hasLabel="false"  title="矿类型"  datatype="*" 
										></t:dictSelect>     
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">矿类型</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								核定下井人数:
							</label>
						</td>
						<td >
						     	 <input id="csPersonNum" name="csPersonNum" type="text" readonly="readonly" style="width: 200px"   datatype="n" 
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csPersonNum}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">核定下井人数</label>
						</td>
					</tr>
					<tr>
						<td align="center">
							<label class="Validform_label">
								核定下井时间:
							</label>
						</td>
						<td >
						     	 <input id="csWellTime" name="csWellTime" type="text" readonly="readonly" style="width: 160px"   datatype="n" 
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csWellTime}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">核定下井时间</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								主服务器ip:
							</label>
						</td>
						<td >
						     	 <input id="csMainServerIp" name="csMainServerIp" type="text" readonly="readonly" style="width: 250px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csMainServerIp}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">主服务器ip</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								备用服务器ip:
							</label>
						</td>
						<td >
						     	 <input id="csBakServerIp" name="csBakServerIp" type="text" readonly="readonly" style="width: 200px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csBakServerIp}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">备用服务器ip</label>
						</td>
					</tr>
					<tr>
						
						<td align="center">
							<label class="Validform_label">
								备用ip:
							</label>
						</td>
						<td >
						     	 <input id="csBakIp" name="csBakIp" type="text" readonly="readonly"  style="width: 160px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csBakIp}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">备用ip</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								备注:
							</label>
						</td>
						<td >
						     	 <input id="csRemark" name="csRemark" type="text" readonly="readonly" style="width: 250px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csRemark}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">备注</label>
						</td>
						<td align="center">
							<label class="Validform_label">
								分公司名称:
							</label>
						</td>
						<td >
						     	 <input id="csParentCompany" name="csParentCompany" type="text" readonly="readonly" style="width: 200px"   
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csParentCompany}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">分公司名称</label>
						</td>
					</tr>
					<tr>
						<td align="center">
							<label class="Validform_label">
								工作班次数量:
							</label>
						</td>
						<td >
						     	 <input id="csMineBanci" name="csMineBanci" type="text" readonly="readonly" style="width: 160px"   datatype="n" 
						     	 ignore="ignore" 
						     	 value='${mineAttributePage.csMineBanci}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">工作班次数量</label>
						</td>
				<td align="center">
					<label class="Validform_label">
					</label>
				</td>
				<td >
				</td>
				<td align="center">
					<label class="Validform_label">
					</label>
				</td>
				<td >
				</td>
					</tr>
			</table>
		</t:formvalid> 

 <script src = "webpage/com/jeecg/mineattribute/mineAttributeList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 });
 
   
 //执行编辑
 function update(title,url, id,width,height,isRestful) {	
	 
		createwindowT(title,url,width,height);
		
		/* window.top.document.getElementById('formobj').contentWindow.reloadTable()
		reloadTable(); */
	}
 function createwindowT(title, addurl,width,height) {
		width = width?width:700;
		height = height?height:400;
		if(width=="100%" || height=="100%"){
			width = window.top.document.body.offsetWidth;
			height =window.top.document.body.offsetHeight-100;
		}
	    //--author：JueYue---------date：20140427---------for：弹出bug修改,设置了zindex()函数
		if(typeof(windowapi) == 'undefined'){
			$.dialog({
				content: 'url:'+addurl,
				lock : true,
				zIndex: getzIndex(),
				width:width,
				height:height,
				title:title,
				opacity : 0.3,
				cache:false,
			    ok: function(){
			    	iframe = this.iframe.contentWindow;
					saveObj();
					window.location.href="mineAttributeController.do?Tlist";
					return false;
			    },
			    cancelVal: '关闭',
			    cancel: true /*为true等价于function(){}*/
			});
		}else{
			W.$.dialog({
				content: 'url:'+addurl,
				lock : true,
				width:width,
				zIndex:getzIndex(),
				height:height,
				parent:windowapi,
				title:title,
				opacity : 0.3,
				cache:false,
			    ok: function(){
			    	iframe = this.iframe.contentWindow;
					saveObj();
					return false;
					
			    },
			    cancelVal: '关闭',
			    cancel: true /*为true等价于function(){}*/
			});
			
		}
	    //--author：JueYue---------date：20140427---------for：弹出bug修改,设置了zindex()函数
		
	}
 /* function saveObj() {
	 
	} */
 </script>